package com.yuyou.tas.report.api;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import com.yuyou.tas.report.service.IExamModelRangeService;
import com.yuyou.tas.report.service.IExamModelService;
import com.yuyou.tas.service.api.report.dto.ExamModelVo;
import com.yuyou.tas.service.api.report.entity.ExamModelQues;
import com.yuyou.tas.service.api.report.entity.ExamModelRange;
import com.yuyou.tas.service.api.report.service.ExamAPI;

@RestController
public class examAPIImpl implements ExamAPI {

	@Autowired
	private IExamModelService examModelService;

	@Autowired
	private IExamModelRangeService examModelRangeService;


	@Override
	public List<ExamModelVo> selectModelByOrganId(Long organId) {
		return examModelService.selectByOrganId(organId);
	}

	@Override
	public List<ExamModelRange> selectRangeByOrganId(Long organId) {
		return examModelRangeService.getByOrganId(organId);
	}

	@Override
	public List<ExamModelQues> selectQuesByOrganId(Long organId) {
		return examModelService.selectQuesByOrganId(organId);
	}
}
